﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (this.User.IsInRole("cliente"))
        {

            Response.Redirect("~/area/cliente/");
        }
        else if (this.User.IsInRole("admin"))
        {
            Response.Redirect("~/area/admin");
        }
        else if (this.User.IsInRole("tecnico"))
        {
            Response.Redirect("~/area/funcionario/tecnico");
        }
        else if (this.User.IsInRole("consulta"))
        {
            Response.Redirect("~/area/funcionario/");
        }


    }
}
